@extends('layout.admin.index')
@section('content')
<body>
<div class="panel admin-panel">
  <!-- 子菜单显示-修改操作管理 -->
  <div class="panel-head" id="add"><strong><span class="icon-pencil-square-o"></span>{{ $title }}</strong></div>
  <div class="body-content">

    <!-- 操作管理添加开始 -->
    <form method="post" class="form-x" action="/admin/operation/doedit" enctype="multipart/form-data">  
    {{ csrf_field() }}
      <div class="form-group">
      </div>


      <!-- 添加操作名称 -->
      <div class="form-group">
        <div class="label">
          <label>操作名称：</label>
        </div>
        <div class="field">
          <input type="text" class="input w50" value="{{ $data['operation_name'] }}" name="operation_name"/>
          <div class="tips"></div>
        </div>
      </div>
      
      <!-- 添加控制器名称 -->
      <div class="form-group">
        <div class="label">
          <label>控制器名称：</label>
        </div>
        <div class="field">
          <input type="text" class="input w50" value="{{ $data['operation_controller'] }}" name="operation_controller"/>
          <div class="tips"></div>
          <div style="Clear:both;margin:8px 0 -10px 0;color:#aac">(标明该操作的控制器名称，标明全称大小写，便于管理。)</div>
        </div>
      </div>

      <!-- 添加操作方法名称 -->
      <div class="form-group">
        <div class="label">
          <label>操作方法：</label>
        </div>
        <div class="field">
          <input type="text" class="input w50" value="{{ $data['operation_function'] }}" name="operation_function"/>
          <div class="tips"></div>
          <div style="Clear:both;margin:8px 0 -10px 0;color:#aac">(标明该操作控制器中的方法名称，便于管理。)</div>
        </div>
      </div>

      <!-- 添加节点说明 -->
      <div class="form-group">
        <div class="label">
          <label>节点说明：</label>
        </div>
        <div class="field"  style="margin-bottom:-10px">
          <textarea name="operation_explain" id="" cols="100" rows="4" style="resize:none;float:left" class="input w50">{{ $data['operation_explain'] }}</textarea><font style="font-size:20px;color:red">*</font>
          <!-- <div class="tips"></div> -->
          <div style="Clear:both;margin:8px 0 -10px 0;color:#aac">(该操作的重点描述信息，便于网站的升级与维护。)</div>
        </div>
      </div>
      <br>

      <!-- 操作状态管理 -->
      <div class="form-group">
        <div class="label">
          <label>操作状态：</label>
        </div>
        <div class="field"  style="margin-bottom:-10px">
          <ul>
            <li style="margin-top:10px">
                开：<input type="radio" value="1" name="operation_open" @if($data['operation_open'] == 1) checked @endif/>
                关：<input type="radio" value="2" name="operation_open" @if($data['operation_open'] == 2) checked @endif/>
            </li>
          </ul>
          <div class="tips"></div>
        </div>
        <div style="float:left;margin:8px 0 -10px 0;color:red">(注意：操作权限,关闭该功能则子管理员失去操作该功能的权限,请谨慎操作.默认：开启)</div>
      </div>
     <input type="hidden" value="{{ $data['id'] }}" name="id">

      <div class="form-group">
        <div class="label">
          <label></label>
        </div>
        <div class="field">
          <button class="button bg-main icon-check-square-o" type="submit"> 提交</button>
          <a href="/admin/operation/index"  class="button bg-main icon-mail-reply">&nbsp返回</a>
        </div>
      </div>
    </form>
    <!-- 操作管理添加结束 -->
  </div>
</div>
</body>
@endsection